package com.zhuoyian.analysis.util;

import android.annotation.SuppressLint;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
	
	
	@SuppressLint("SimpleDateFormat") 
	public static String getCurDate(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return sdf.format(new Date());
	}
	@SuppressLint("SimpleDateFormat")
	public static String getDate(long milliseconds){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return sdf.format(new Date(milliseconds));
	}

}
